package org.lc.cmd.impl.sysreq;

import org.lc.cmd.CmdSession;
import org.lc.cmd.ReceivedSysReq;
import org.lc.cmd.model.SysReqData;

import java.util.Map;

public class BaseReceivedSysReq extends BaseSysReq implements ReceivedSysReq {
    private final SysReqData data;

    public BaseReceivedSysReq(CmdSession session, boolean clientReq, SysReqData data) {
        super(data.getSysReqId(), session, clientReq);
        this.data = data;
    }

    @Override
    public String getType() {
        return data.getType();
    }

    @Override
    public Map<String, String> getArgs() {
        return data.getArgs();
    }
}
